import request from '../utils/request'
/*首页幻灯片*/
export const getBannerList = () =>
  request({
    url:'/mobile/systemBanner/public/list',
    method:'GET',
  })
/*热门项目*/
export const getSportsHotList = () =>
  request({
    url:'/mobile/sports/public/hotList',
    method:'GET',
  })

/*信息公告列表*/
export const noticeList = (data:any) =>
  request({
    url:'/mobile/information/public/list',
    method:'GET',
    data
  })

/*信息公告详情*/
export const noticeInfo = (data:any) =>
  request({
    url:'/mobile/information/public/show',
    method:'GET',
    data
  })

export const getPublickCampOpen = () =>
  request({
    url:'/mobile/img/public/campOpen',
    method:'GET',
  })


export const chartAndTxt = (data:any) =>
  request({
    url:'/mobile/img/previous/list',
    method: 'GET',
    data,
    noLoading:true
  })
export const getNowBanner = () =>
  request({
    url:'/mobile/img/public/now/banner',
    method: 'GET',
    noLoading:true
  })

export const overTeamList = (data:any={}) =>
  request({
    url:'/mobile/sportsCategory/public/second/list',
    method: 'GET',
    data
  })
export const getPublicImgList = (data:any={}) =>
  request({
    url:'/mobile/sportsCategory/public/img/list',
    method: 'GET',
    data
  })

export const participateInList = (data:any={}) =>
  request({
    url:'/mobile/classManagement/participateIn/list',
    method: 'GET',
    data
  })

export const getSystemAboutShow = (data:any={}) =>
  request({
    url:'/mobile/systemAbout/public/show',
    method: 'GET',
    data
  })
